package com.maybach.common.exception;

/**
 * Created by houenxun on 16/2/18.
 */
public enum ErrorCodeEnum {

    NO_DATA("NO_DATA", "没有数据"),
    PARAM_ERROR("PARAM_ERROR", "参数错误"),
    QUERY_FAIL("QUERY_FAIL", "查询错误"),
    DATA_ERROR("DATA_ERROR", "查询错误"),;

    private String code;
    private String desc;

    private ErrorCodeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
